import {Component, EventEmitter, OnInit, Output, ViewEncapsulation} from '@angular/core';

@Component({
  selector: 'seed-sale-record',
  templateUrl: './record.component.html',
  styleUrls: ['./record.component.scss'],
  host: {id: 'seed-sale-record'},
  encapsulation: ViewEncapsulation.None,
})
export class SaleRecordComponent implements OnInit {
  @Output() submit: EventEmitter<string> = new EventEmitter();
  public val = '';
  constructor() { }
  save() {
    this.submit.emit(this.val);
    this.val = '';
  }
  ngOnInit() {}

}
